/**
 * 
 */
package de.pchsws.blackboarder;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;

/**
 * @author yannick
 * 
 */
public class DisplayActivity extends Activity {

	/**
	 * The name of the textExtra passed to {@link Intent}.
	 */
	public static final String TEXT_EXTRA = "text";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setContentView(R.layout.activity_display);
		String input = getIntent().getStringExtra(TEXT_EXTRA);
		TextView textView = (TextView) findViewById(R.id.textView1);
		textView.setText(input);
	}

}
